<?php

class MarketsController extends Base {
  use CURD;

  public $tableName = 'markets';
  protected $deleted_at = true;
  protected $isTree = false;
  protected $likeField = 'title'; 
  protected $parentKey = 'pid';
  protected $relations = [
    'area_id' => ['table'=>'areas','as'=>'area','pri'=>'id','cols'=>['id','title'],'where'=>['deleted_at'=>null],'type'=>'one'],
  ];
}
